'use strict';

var commonModels = angular.module('commonModels');

commonModels.factory('AppOpt', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'appOpt/:action', {}, {
        opt: {method:'GET', params:{action: true}}
    });
}]);
commonModels.factory('App', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'app/:appId', {appId:'@id'}, {
        query: {method:'GET', isArray:false}
    });
}]);

commonModels.factory('ThemeOpt', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'themeOpt/:action', {themeId:'@id'}, {
        opt: {method:'GET', params:{action: true}}
    });
}]);

commonModels.factory('TemplateOpt', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'templateOpt/:action', {themeId:'@id'}, {
        opt: {method:'GET', params:{action: true}}
    });
}]);






